# -*- coding: utf-8 -*-

"""
@File    : main.py
@Author  : xubin
@Time    : 2022/7/21 09:38
@Desc    :
"""
from feapder import ArgumentParser
from src.auto_switch import AutoSwitch
from src.auto_check import AutoCheckin


def auto_checkin():
    AutoCheckin(thread_count=1).start()


def auto_switch():
    AutoSwitch().start()


if __name__ == '__main__':
    parser = ArgumentParser(description='自动化')
    parser.add_argument(
        '--auto_switch',
        action="store_true",
        help='vpn自动切换',
        function=auto_switch
    )
    parser.add_argument(
        '--auto_checkin',
        action="store_true",
        help='优云自动签到',
        function=auto_checkin
    )
    parser.start()
